CMAKE_MINIMUM_REQUIRED(VERSION 3.0)
project(test)
# add_compile_options(-fopenmp)
SET(CMAKE_BUILD_TYPE Release)
set(CMAKE_C_COMPILER "/home/oseasy/zhangwei/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1/bin/riscv64-unknown-linux-gnu-gcc")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=rv64gcv0p7xthead -static -fPIC -fopenmp")
include_directories(./include/)
file(GLOB_RECURSE SRC src/*.c)
add_library(test SHARED ${SRC})
# add_executable(test2 ${SRC})
# add_executable(test example.c Stack.c)